<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>this指向</title>
	</head>
	<body>
		<script type="text/javascript">
			function a()
			{
				console.log(this);
			}
		let obj = {
			"name":"枫叶在飘呀",
			fun:function()
			{
				console.log(this)
			}
		}
		obj.fun()
		</script>
	</body>
</html>
